Is there a direct command or need to write a shell script for following requirement?
Everyday a folder is populated with approx 25k to 30k xml files. I need to create multiple zip files in the same folder each containing 50 xml files. The last zip file may or may not contain 50 xml files.
I have a folder with several files. These files are either .xml or .zip files.
These .zip files contain .xml and/or .zip files. These .zip contains also .xml or .zip, and so on... until we finally found .xml files.
In others words, I can have several "levels" of zip before finding my .xml files (cf.
Say I want to run a program or transfer files over the network using scp, and I create a screen and run those commands in the screen using * to indicate that I want the command to apply to all files in that folder.
how to create a command in csh that would print files only from 1 folder but as an argument takes home directory for e.g. in my home diecrtory I have 3 folders unix, windows,mac and alot of files. and I running the program as
this should return me files from unix folder without fikes from the home directory.
I want to create zip of a folder from command-line. I can do something like
zip -r folder.zip folder. I want to give the zipped folder same name as the original folder. I can simulate this by writing a script:
zip -r $1 $1
And then doing ./script folder.
Is it possible to do this without writing any script?