9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello,
I'm on a remote computer by SSH. How can I get the output of "cat file" into a file on the local computer?
I cannot use scp, because it's blocked.
something like:
ssh root@remote_maschine "cat /file" > /locale_machine/file
:rolleyes: (2 Replies)
Discussion started by: borsti007
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
I am trying to read version from a web url like <url/daily-builds/sdk-3.2.v20140312170355-osx.zip>
and download and store in my filesystem if its the latest.
Kindly help me how to read version 3.2.v20140312170355 and compare same with a folder named similar in my directory and... (1 Reply)
Discussion started by: pragyarastogi
1 Replies
3. Shell Programming and Scripting
ok so I have a file on a website. this file is a plain text file
i need to be able to update the contents of this file from any internet enabled unix box.
does anyone have ideas on how it can be done, without using scp/ftp?
i know wget can be used to download the file:
wget... (3 Replies)
Discussion started by: SkySmart
3 Replies
4. UNIX for Advanced & Expert Users
in bash:
for i in `cat file` ; do
echo $i
done;
how will i do this in perl ? (10 Replies)
Discussion started by: linuxgeek
10 Replies
5. Shell Programming and Scripting
how to cat a file by ignoring first line and last line (1 Reply)
Discussion started by: thelakbe
1 Replies
6. 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
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
I want to cat a file with only show the line contain '/bin/bash' but don't show the line contain 'load' (don't show if the line contain 'load' and '/bin/bash' together), how to type in the command? thk a lot! (2 Replies)
Discussion started by: zp523444
2 Replies
9. UNIX for Dummies Questions & Answers
Not sure how to do this exactly.. just want to take the first 100 lines of a file and cat it out into a second file. I know I can do a more on a file and > it into a different file, but how can I make it so only the first 100 lines get moved over? (1 Reply)
Discussion started by: LordJezo
1 Replies