10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
In the awk below I am trying to remove all instances after a ; (semi-colon) or , (comma) in the ANN= pattern. I am using gsub
to substitute an empty string in these, so that ANN= is a single value (with only one value in it the one right after the ANN=). Thank you :).
I have comented my awk and... (11 Replies)
Discussion started by: cmccabe
11 Replies
2. Shell Programming and Scripting
hi Gurus,
I need separate a file which is one huge line to multiple lines based on certain number of charactors. for example:
abcdefghi high abaddffdd
I want to separate the line to multiple lines for every 4 charactors.
the result should be
abcd
efgh
i hi
gh a
badd
ffdd
Thanks in... (5 Replies)
Discussion started by: ken6503
5 Replies
3. Shell Programming and Scripting
Hi Gurus,
I need separate one file which is one huge line to mutiple line.
file like
abcd # bcd # def # fge # ged
I want to get
abcd
bcd
def
fge
ged
Thanks in advance (4 Replies)
Discussion started by: ken6503
4 Replies
4. Shell Programming and Scripting
file1.txt
file2.txt
file3.txt
desired output is
each file is in the same directory, hasthe same number of columns but different rows. i want to be able to paste them into one file.
thanks! (5 Replies)
Discussion started by: johnkim0806
5 Replies
5. Shell Programming and Scripting
I have searched throught a host of threads to figure out how to rename mutiple files at once using a script.
I need to convert 200+ files from:
fKITLS_120605-0002-00001-000001.hdr to eStroop_001.hdr
fKITLS_120605-0002-00002-000002.hdr to eStroop_002.hdr
and so forth....
What is... (5 Replies)
Discussion started by: akenne3
5 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I just started to learn shell progamming and just can't get my head around the following problem.
I need to do the following:
I have a folder which contains 100+ subfolders. Inside these subfolders there is one folder named 'Morph' and several jpg's.
I need to copy all the files into... (4 Replies)
Discussion started by: M474746
4 Replies
7. Shell Programming and Scripting
Hi All,
I had a file called Input.txt, i need to group up in a single line as 1=ttt and the no of lines may vary bewteen the 1=ttt
cat Input.txt
1=ttt,2=xxxxxx, 3=4545
44545, 4=66667
7777, 5=77723
1=ttt, 2=xxxxxx, 3=34436 66
3545, 4=66666, 5=ffffff, 6=uuuuuuu
1=ttt, 2=xxxxxx,... (4 Replies)
Discussion started by: manosubsulo
4 Replies
8. Shell Programming and Scripting
I need to clean out some application subdirectories from backup scripts we used to rename to various backup extensions just in case the script failed in production and we need to rollback. I will be moving these old scripts to a staging directory and then removing them after 30 days (I have the... (9 Replies)
Discussion started by: tekster757
9 Replies
9. Shell Programming and Scripting
I have a script which removes files (if they exist)
Here is a cut down example of the script.
Variables file1,file2 etc have already been initialized
#!/bin/bash
if
then
\rm file1
fi
if
then
\rm file2
fi
if
then
\rm file3
fi
if
then
\rm file4 (9 Replies)
Discussion started by: run_time_error
9 Replies
10. Shell Programming and Scripting
Hi all,
In the process of creating CPU reports.
I've already used `sar` to create a daily file, then monthly reports for CPU usage (which is averaged across all 4 CPU's).
I've now used `cpusar -P ?`(?=CPU#) to collect individual CPU data and have four files for each day which is great.
The... (4 Replies)
Discussion started by: Cameron
4 Replies