10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Good day to all,
I'd like to ask for your advice with regards to this.
I have here a file named TEST.tmp wherein the value inside is below;
But when I'm trying to use this in a simple command like;
for TESTING in $(cat... (4 Replies)
Discussion started by: asdfghjkl
2. Shell Programming and Scripting
I have a script to do a couple simple but repetitive commands on files that are provided to us. One of the things is to get rid of the line feeds. This is the section that is causing problems, i even cut this section into its own file to make sure nothing else was affecting it.
#!/usr/bin/bash... (4 Replies)
Discussion started by: oly_r
3. Shell Programming and Scripting
Apologies, probably a really simple problem:
I've got a text file (nh.txt) with this in it:
user1 email1 email2
user2 email1 email2
With the following basic script:
for tline in $(cat nh.txt)
... (3 Replies)
Discussion started by: nelmo
4. Shell Programming and Scripting
I need to create loop script to read full line and append a variable to each line.
I need the output like below
10.0.0.1,136 1 24 048800 id N4 No_Light
10.0.0.1,137 1 25 048900 id N4 No_Light
10.0.0.1,140 1 28 048c00 id N4 No_Light
10.0.0.1,262 1 38 048e80... (13 Replies)
Discussion started by: ranjancom2000
5. Shell Programming and Scripting
We have shell script (in ksh) which reads the records from a csv file line by line and does some operation. We have below command to read the file (CSV has the absolute path of files stored on a server something like SER/IMP/TEST/2010/12/123465.1).
for i in $P_FILES... (2 Replies)
Discussion started by: shreevatsau
6. Emergency UNIX and Linux Support
I have list of files in my current directory
I don't want to open first and last file. i.e (abc.txt and 123_ex_csv)
cat *.csv, but it won't work.
Can anyone tell me the proper regex only in cat
... (2 Replies)
Discussion started by: pritish.sas
7. Shell Programming and Scripting
Here is my requirement
I have to search 'ORA' word in out.log file,if it is present then i need to send that file (out.log) content to some mail id.If 'ORA' word is not in that file then i need to send 'load succesful' message to some mail id.
The below the shell script is not... (5 Replies)
Discussion started by: mak_boop
8. Shell Programming and Scripting
Hi I have a simple code that I want to execute.
for f in `cat list.txt | head -1`; do
echo $f >> $out
echo "sleep 5" >> $out
cat list.txt | head -1
wget -q -O - 'http://test.com:15100/cgi-bin/search
-O (10 Replies)
Discussion started by: soemac
9. Shell Programming and Scripting
I am finding the performance of cat command is very wierd, it is taking more time to merge the files into a single file. We have a situation where we would be merging more than 100 files into a single file, but with cat command it is running slow. I tried doing with paste, join... (13 Replies)
Discussion started by: RcR
10. UNIX for Dummies Questions & Answers
If I have a data file containing entries like-> abc abc:123
and I use a for loop:
for I in `cat data-file`
the output would contain 2 lines -> abc.... and abc:123
but I want it to be on only one line. How can I do this?
thanks (1 Reply)
Discussion started by: sleepster