Mastering File Operations
Efficient navigation and file management is crucial for productive marketing work with Claude Code. This lesson covers essential techniques to find, organize, and work with your marketing files quickly.
What Youโll Learn
- Quick file finding techniques
- Advanced search patterns
- Batch operations on multiple files
- Project organization best practices
Finding Files Quickly
By Name
Find all files with "campaign" in the name
Show me all email templates
List files ending in -draft.md
By Content
Find all files that mention "product launch"
Search for files containing our Q2 campaign messaging
Which files reference "Manager Mark" persona?
By Location
Show all files in content/blog/
List everything in the campaigns folder and subfolders
What's in research/competitors/?
Advanced Search Patterns
Combining Criteria
Find blog posts from April that mention SEO
Show email templates that include CTAs about free trials
List social posts tagged for LinkedIn in the Q2 folder
Wildcard Searches
Find all markdown files in content/ and subdirectories
Show PDFs in the research folder
List all files modified in the last week
Batch Operations
Update Multiple Files
Find all blog posts and update the author bio at the end
Change all instances of "free trial" to "14-day free trial" across email folder
Add copyright year 2024 to footer of all landing pages
Audit Multiple Files
Review all social posts in content/social/q2/ and:
- Check if they follow brand voice
- Flag any missing CTAs
- Identify posts without hashtags
- Report which are ready to publish
Create audit report in analytics/q2-social-audit.md
Project Organization
Archive Old Content
Create an archive/ folder
Move all completed Q1 campaigns there
Keep only active campaigns in main campaigns/ folder
Reorganize by Campaign
Create campaigns/product-launch/ structure with:
- /brief
- /content
- /assets
- /reports
Move all product launch related files into this structure
Update paths in any files that reference them
Working Across Multiple Files
I need to ensure brand consistency across all Q2 content.
Read brand/voice-guide.md
Then review ALL files in content/q2-campaign/
Flag any that don't match brand voice
Provide specific fixes for each
Create report in analytics/q2-brand-consistency-check.md
Quick Reference Commands
Essential Commands
# List and Find
List all files in [folder]
Find files containing [text]
Show me files modified today
What's in this directory?
# Read and Search
Read [filename]
Search all files for [term]
Show me the first/last 10 lines of [file]
Find which files mention [topic]
# Create and Edit
Create [filename] with [content]
Edit [filename] to [change]
Copy [file] to [location]
Move [files] to [folder]
# Batch Operations
Update all files in [folder] to [change]
Review all [type] files and [action]
Apply [change] across all [criteria] files
Pro Tips for Marketers
Content Calendar Navigation
Show me all content scheduled for next week
List blog posts that need images
Find emails without subject line A/B tests
Which social posts are ready to schedule?
Campaign Status Checks
Review all files in campaigns/q2-launch/ and report:
- Which are complete vs draft
- Any missing required elements
- Overall campaign readiness percentage
- Next steps needed
Exercise: Master Navigation
- Create a complex folder structure with 20+ files
- Practice finding specific files with various criteria
- Perform batch updates across multiple files
- Reorganize files into new structure
- Create a content inventory of everything
Key Takeaways
- Use natural language to find and navigate files
- Combine search criteria for precise results
- Batch operations save massive amounts of time
- Keep project organized with clear folder structure
- Regular audits maintain quality and consistency
Module 1 Complete! Youโve mastered the core concepts of Claude Code for marketing. You can now organize projects, create content, use agents, build custom reviewers, set up project memory, and navigate efficiently. Youโre ready for advanced applications in Module 2!