Skip to content

Instantly share code, notes, and snippets.

@kirandash
Last active March 9, 2023 03:39
Show Gist options
  • Save kirandash/2b5c33b92f01ec8c515e09d36f1e4163 to your computer and use it in GitHub Desktop.
Save kirandash/2b5c33b92f01ec8c515e09d36f1e4163 to your computer and use it in GitHub Desktop.
Create multiple files with pbpaste
pbpaste > ./app/routes/users.\$username.tsx
pbpaste > ./app/routes/users.\$username.posts.tsx
pbpaste > ./app/routes/users.\$username.edit.tsx
pbpaste > ./app/routes/posts.tsx
pbpaste > ./app/routes/posts.new.tsx
pbpaste > ./app/routes/posts.\$postId.tsx
pbpaste > ./app/routes/posts.\$postId.edit.tsx
pbpaste > ./app/routes/search.tsx
pbpaste > ./app/routes/login.tsx
pbpaste > ./app/routes/signup.tsx
pbpaste > ./app/routes/about.tsx
pbpaste > ./app/routes/privacy.tsx
pbpaste > ./app/routes/support.tsx
pbpaste > ./app/routes/tos.tsx
pbpaste > ./app/routes/coc.tsx
// Before running the above command please make sure you have copied the following code on your clipboard
export default function UnnamedRoute() {
return <div>UnnamedRoute</div>
}
// Make sure to escape special character like $ with backslash \
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment