9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have identified how to use command chaining as per below on a file, to capture the header of a file, as well as the line containing the C: drive.
$ cat test.txt
Filesystem Size Used Avail Use% Mounted on
rootfs 237G 153G 84G 65% /
none 237G 153G 84G ... (6 Replies)
Discussion started by: sand1234
2. Shell Programming and Scripting
I have a script that writes another script with
cat >/usr/local/bin/myscript.sh <<EOF
VAR=`run a command here`
Problem is, after this is run, I get:
$ cat /usr/local/bin/myscript.sh
VAR=result of command
How do I stop that from happening with Macs... (2 Replies)
Discussion started by: jnojr
3. Shell Programming and Scripting
Does any one know any command runs faster than this to give duplicate numbers
cat file1 file2 ....file 100 | sort |uniq -c
thanx (3 Replies)
Discussion started by: quincyjones
4. UNIX for Advanced & Expert Users
I have a file with list of redundant server names and want only unique ones of those.
I have used following command but still redudant ones are listing
where could be the problem.
Srinivas (3 Replies)
Discussion started by: srinivas Juluri
5. Shell Programming and Scripting
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
It wrote a whole... (21 Replies)
Discussion started by: shira
6. UNIX for Dummies Questions & Answers
I am trying, utilizing the few commands I know, to extract all records within my file that were generated in November of 2007. Each record within the file has a "date" field giving the month, day, and year (9-8-88). How do I extract those records to their own file?
Once I extract... (4 Replies)
Discussion started by: babbabooey
7. UNIX for Dummies Questions & Answers
Can anybody tell the difference between Difference between cat , cat > , cat >> and touch command in UNIX?
Thanks (6 Replies)
Discussion started by: skyineyes
8. UNIX for Advanced & Expert Users
i have two files, one of the format
And the other
I would like to combine them into one file with three columns:
A 123 678
B 124 789
C 234 689 (4 Replies)
Discussion started by: Khoomfire
9. UNIX for Dummies Questions & Answers
Can anyone give me a hand with some questions by e-mailing me directly, so I can relay the questions inorder. I really would appreciate anyone that can help.
Thank You in advance, I am online and will reply instantly.
<email removed> (5 Replies)
Discussion started by: flarebel