9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi,
When I was analyzing the code I got below line.
cat - << 'EOF' >> ${FILE PATH}
I surfed net to understand but I couldn't get what is about.
Please help me out. (2 Replies)
Discussion started by: stew
2 Replies
2. UNIX for Dummies Questions & Answers
I've been having trouble with cat and variables. If I do the following:
var1=filex
cat $var1
I get the contents of the file named filex
If I do
var2="X-0101\ 2-10-2013.txt"
cat "$var2"
I get cat : cannot open X-0101\ 2-10-2013.txt.
I have tried to do cat $var2 without quotes as... (8 Replies)
Discussion started by: newbie2010
8 Replies
3. UNIX for Dummies Questions & Answers
Hi,
I am unable to use a basic script in cygwin. Please help me out.
Script used :
#!/bin/bash
echo "Lucent MSC1"
echo "==========="
echo "Orig_MSCID Summary Top 10"
cat k1.txt | grep -i orig_mscid | sort | uniq -c
echo "Hourly Summary"
cat k1.txt | grep "#" | cut -c 10-11 | uniq... (7 Replies)
Discussion started by: vanand420
7 Replies
4. UNIX for Dummies Questions & Answers
Hi there,
I have the following problem. I have a csv file which looks like
'AGI,ABJ,Y,Y,Y,None,EQUATION,ANY,ANY,None,'
'AGI,ABJ,Y,Y,Y,None,EQUATION HEAVY,ANY,ANY,None,'
'AGI,ABJ,Y,Y,Y,None,VARIATION,ANY,ANY,None,'
but I do this
for ab in $(cat test.csv); do echo $ab; done
in the... (4 Replies)
Discussion started by: sickboy
4 Replies
5. Shell Programming and Scripting
Hello,
So I sorted my file as I was supposed to:
sort -n -r -k 2 -k 1 file1 | uniq > file2
and when I wrote
> cat file2
in the command line, I got what I was expecting, but in the script itself
...
sort -n -r -k 2 -k 1 averages | uniq > temp
cat file2
It wrote a whole... (21 Replies)
Discussion started by: shira
21 Replies
6. Shell Programming and Scripting
cat myname.txt
John Doe I
John Doe II
John Doe III
-----------------------------------------------------------------------
for i in `cat myname.txt`
do
echo This is my name: $i >> thi.is.my.name.txt
done
-----------------------------------------------------------------------
cat... (1 Reply)
Discussion started by: danimad
1 Replies
7. UNIX for Dummies Questions & Answers
Hi
Can anybody tell the difference between Difference between cat , cat > , cat >> and touch command in UNIX?
Thanks (6 Replies)
Discussion started by: skyineyes
6 Replies
8. UNIX for Dummies Questions & Answers
1. what do the following commands do (give logic and concise description)
a. cat 1> file-A 2> file-B 0< file-C
b. cat 2> file-B 0< file-C 1> file-A
c. cat 1> file-A 0< file-C 2>&1
d. cat 0<file-C | sort 1> file-A 2> /dev/null
e. cat 2> file-B 0< file-C | sort 1> file-A 2> /dev/null (1 Reply)
Discussion started by: chitti76
1 Replies
9. UNIX for Dummies Questions & Answers
Hi experts,
I have a log file, i tried to see it with cat abc.log|pg. Since it has lacs of rows, I wanted to know how can i navigate to a particular date row.
Also with vi how can I navigate.
Thanks in advance (1 Reply)
Discussion started by: shaan_dmp
1 Replies