Quantcast
Channel: Show contents of many files - Unix & Linux Stack Exchange
Viewing all articles
Browse latest Browse all 6

Show contents of many files

$
0
0

From the command line, what is the easiest way to show the contents of multiple files? My directory looks like below.

./WtCgikkCFHmmuXQXp0FkZjVrnJSU64Jb9WSyZ52b./xdIwVHnHY7dnuM9zcPDYQGZFdoVORPyMVD2IzjgM./GZnATXO1e5Hh3Bz1bhgJjjwheIjjZqtnXR0hfOyj./mWz7ehBNoTZmtDh8JG6sxw2lMJFwIovPzxDGECUY./JN65F5v3RL2ilHPqNSx9N9D4lvVpqpbJ9lASd8TJ./At9PS4y4nTiXUO0Z0USnbYkTPBla1msQRpwuruqE./YiPyMZPCaUDZTiTczAvWII9bJrUqLXCFtH2pXEA2./JoakdlbRFPwAvWp1d4n8RvMoyMeizCoiriL2Sn2U./wFPWZUus8Yu7UtESGABLCoqDg36cT90USO0xuyUr./qseI9PgV1EJfZCDyGGeVytajqG7JeX0r7eA5S1JW./zgFJpNgXyCsaVh38aCuMGuzHwIbwSNB6rQDdh27x./.htaccess

Now I'd like to view the contents of all files except .htaccess. It might look something like:

WtCgikkCFHmmuXQXp0FkZjVrnJSU64Jb9WSyZ52b:Contents of file WtCgikkCFHmmuXQXp0FkZjVrnJSU64Jb9WSyZ52b.xdIwVHnHY7dnuM9zcPDYQGZFdoVORPyMVD2IzjgM:Contents of file xdIwVHnHY7dnuM9zcPDYQGZFdoVORPyMVD2IzjgM.[...]

I think this should be doable with a combination of find, xargs and cat, but I haven't figured out how. Thanks for your time!


Viewing all articles
Browse latest Browse all 6

Latest Images

Trending Articles





Latest Images