10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello All,
Since i'm relatively new in shell script need your guidance.
I'm copying files manually based on a specific word in a file name and its extension and then moving it into some destination folder.
so if filename contains hyr word and it has .md and .db extension; it will move to TUM/HYR... (13 Replies)
Discussion started by: prajaktaraut
13 Replies
2. Shell Programming and Scripting
Hello All,
I have some files like file, file.chk, file.sem and file.temp in huge. I would like to delete some files based on following criteria.
1. Unconditionally delete .sem and .temp files
2. If we found the actual file, don't remove .chk file, otherwise remove .chk file as well
for... (5 Replies)
Discussion started by: VasuKukkapalli
5 Replies
3. Shell Programming and Scripting
Hi all...
I am trying to copy all my shell script to some directory using following command, I want to simplify it by not using awk..please some one help me....
find -name "*.sh" | awk -F"/" '{a=$NF;gsub(".sh",x,a);cmd="cp"" " $0" ""/home/akshay/MY_ALL/"a"_"++i".sh";system(cmd)}' (3 Replies)
Discussion started by: Akshay Hegde
3 Replies
4. Shell Programming and Scripting
Hi,
I have 1000 of files in a folder with the file extension as .csv
In this some of the files are already zipped and its looks like filename.csv.gz
Now i need to zip all the files in the folder to free some disk space. When i give gzip *.csv
It prompts me to overwrite filename.csv.gz... (5 Replies)
Discussion started by: nokiak810
5 Replies
5. Shell Programming and Scripting
I have posted this before but did not get many replies, so here it goes again.
I have several files name like this
If the file extension is 1a, I woould like to add at the beggining of the file the following sequence
If the file extension is 1b, thn the entry that should be added is the next... (2 Replies)
Discussion started by: Xterra
2 Replies
6. Linux
Hi,
I have a root directory which has a big number of other subdirectories and contains a big number of files. I want to copy all these files and directories to another folder except files with certain extension, say .txt, files - how may I do this?
Thanks,
faizlo (8 Replies)
Discussion started by: faizlo
8 Replies
7. UNIX for Dummies Questions & Answers
Hi,
I need one line command to display all files that ends with .scr.
Example: In a directory I have 10 files, out of that 4 files have filetype extension .dat and 4 files with .scr and 2 files with .txt.... In this i want to display only files that ends with .scr.
I tried some commands,... (2 Replies)
Discussion started by: gwgreen1
2 Replies
8. HP-UX
I am brand new to hp unix systems. I see some files without extension on this system. If I type name of the file it shows me so many detail but does not take me back to command prompt. What are these files and how do I come back to command prompt? Please help (1 Reply)
Discussion started by: rajahindustani
1 Replies
9. UNIX for Dummies Questions & Answers
Can some one help ......
I want to list files with no extension in directory.
I have tried the following
ls * That listed all files
ls *.* That listed files with extension
ls That listed all files
Thanks (5 Replies)
Discussion started by: Wing m. Cheng
5 Replies
10. UNIX for Advanced & Expert Users
Hi Experts,
I am working in HP-UX 11.0 workstaion.
How can i make a file to be executed with the corresponding software to be invoked or executed.
as in Windows.
ie., if a file index.html has to be double clicked to invoke the Netscape Navigator.
What i have to do to achieve this... (2 Replies)
Discussion started by: anent
2 Replies