10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Trying to process 1000 or so files. Take original date and append to end of file. Like so:
Been working along these lines:
date=`ll tstpls42.bas |cut -c 46-57 |sed -e 's/]/\-/g' | grep -v '^$'`
for i in *.bas ; do j=`ll $i /hpdump/b1 | awk... (1 Reply)
Discussion started by: joeadmin
2. Shell Programming and Scripting
I was thinking something like
for i in `find . -name "*.log.Z"`; do mv $i name.log.Z
or something like that? (3 Replies)
Discussion started by: xgringo
3. Shell Programming and Scripting
Using shell, I am trying the append comma to every line of text.
the requirement is like, I have to open the txt file in unix and read line by line and should add comma at the end of every word to make it single line
email@example.com... (7 Replies)
Discussion started by: giridhar276
4. Shell Programming and Scripting
I have output files that are all text files with various different extensions.
So, if I submit the input file "job_name.inp", when it finishes I get an output file "job_name.dat". A typical input file looks something like this:
$CONTRL SCFTYP=RHF RUNTYP=ENERGY MAXIT=199 MULT=1... (4 Replies)
Discussion started by: marcozd
5. Shell Programming and Scripting
Please tell me how to append some text message at the end of the file.
"File too large to view"
example: xyz.log contains
"File too large to view"
Please advice (3 Replies)
Discussion started by: rajeshorpu
6. Shell Programming and Scripting
I need to append some text @ end of the first line in a file.
list = a,b,c
I give the arg "d" . now it append at end of first line
Please help me out this (7 Replies)
Discussion started by: catgovind
7. Shell Programming and Scripting
Hello I am trying to append an incrimenting number to the end of each line I have it working with a temp file. But I want to do this without a temp file.
cat "file" | while read LINE
echo "$LINE, $a" >> filewithnumbers
a=`expr $a + 1`
... (4 Replies)
Discussion started by: rorey_breaker
8. UNIX for Dummies Questions & Answers
I have a .txt file and it contains some file names.I want to append .gz extension to all the file names that are present within the .txt file.
Please help me with this command.
... (10 Replies)
Discussion started by: kumarsaravana_s
9. Shell Programming and Scripting
I have two comma separated value(CSV) files, say FileA and FileB.
The contents looks like that shown below.
1001,DES,24,F, ... (2 Replies)
Discussion started by: ultimate
10. Shell Programming and Scripting
I need the line printed with echo to append to eof of to exactly line, am i able to do that?
echo "sysctl -w lalala=1" > to end of file /etc/sysctl.conf
or to the 21st line, if the line exist, open new line and insert text there.
Thx.maybe i'm in wrong topic but anyway... (2 Replies)
Discussion started by: hachik