I use the cat command to concatenate text files, but one of the rows I was expecting doesn't display in the output file. Is there a verbose mode\logging mechanism for the cat command to help me investigate where the lines I was expecting are going??
to concatenate files.
one of the files 7760-001_1_67_06_2008-02-09t14x54x52.txt contains the following rows (I've cut down the number of columns and inserted string '[null]' for clarity)
A~ZAPPA~Baby of Gigi~[null]~Miss~20080209~20120628
A~ZAPPA~KIM ~[null]~Miss~20120628~20120628
L~ZAPPA~Kim ~[null]~Miss~20120628~[null]
Only 2 of the rows I was expecting make it to the 06.out file (the top 2)
A~ZAPPA~Baby of Gigi~[null]~Miss~20080209~20120628
A~ZAPPA~KIM ~[null]~Miss~20120628~20120628
I don't really know where to begin with this one, or if I've provided enough information.
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)
plz help me to figure it out
how i remove empty or blank files using cat command.
i will be very thankful if u send me this answer...
thanks (3 Replies)
Team,
we use below command to store the contents in a logfile.
cat a.txt > a.log
a.txt content is
123
345
Is there any options available to store the command used also?
for eg a.log may show as
cat a.txt
123
345 (5 Replies)
I have a file
# cat /root/llll
11
22
33
44
When I cat this file content to a variable inside a shell script and echo that shell script, it does not show up as separate lines. I need echo output similar to cat.
cat /root/shell_script.sh
#!/bin/bash
var=`cat /root/llll`
echo $var (2 Replies)
Hi All,
I have an input file containing data as below:
Input.DAT
XXXXXXX|YYYYYYY|ZZZZZZZZZZ|12334446456|B|YY|111111111|111111111|111111111|111111111|15|3|NNNNNN|Y|3|AAA|111111111... (11 Replies)
Hello All,
I have a bash script and in it at some point I call an Expect Script that does some stuff and saves its
output in a ".txt" file.
Example "/path/to/my/file/Expect_Output.txt" file: notice the 2nd line is empty in the file...
Data for Host-1 (192.168.1.110)
Checking the... (2 Replies)
Okay, so I have a file containing line after line of three digit numbers. I need a script that does an action based on the last two numbers in this list.
So.... To get the last two numbers, I can have the script do
tail -2 filename.txt
But where I run into trouble is as follows. If... (6 Replies)
Hi All,
I was testing for blank lines and I want to use the cat command only
for groupline in `cat /home/test/group`
do
if
then
echo "blank found"
fi
done
I want to check if the current line read is a blank line.
I have tested with $groupline="\n" ,... (11 Replies)
Hello,
I'm new to shell scripting and did a search on the forum to what I want to do but couldn't find anything.
I have about 9 routers that outputs to 1 syslog file daily named cisco.year.mo.date.log ex: cisco.2009.05.11.log
My goal is to make a parsing script that cats today's syslog... (2 Replies)
Hi guys...
I am new to this scripting...so please forgive me if anything worng in my questions...
here is my question..
I have file structure
/home/oracle/<sid>/logs/bkup
now i want to write a script which should grep the sid name from a file..and it should replace the <SID> with... (1 Reply)