9 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
ssh -q "server_name sudo echo 'dbagroup::1234' >> sudo /etc/group"if i execute the above code its not getting appended.
my requirement is to login to remote server and append dbagroup::1234 in /etc/group i am able to achieve this with tee -a command
want to know why its not working with >>... (5 Replies)
Discussion started by: chidori
5 Replies
2. Shell Programming and Scripting
Hello,
I want some directions for a command inside a shell script which would copy files from some path on my windows os (say my documents) to the path where my shell script is saved and I want it to exit the sftp session and continue executing the remaining lines in my shell script after... (2 Replies)
Discussion started by: Vishwa308
2 Replies
3. Shell Programming and Scripting
I am trying to count number of record in a file and then append a trailer to that file.
Trailer should e in the format as below
T| <count of records>
count of records ---> this count should be one less than the actual count obtained, as the file will have a header.
I have drafted a... (3 Replies)
Discussion started by: siteregsam
3 Replies
4. UNIX for Dummies Questions & Answers
Hey all
I am trying to append a file called datebook.txt. I want to append the end of each line containing the name Fred with three ***. I believe I need to make the * loose its meta character meaning in addition to using the append command. I have tried several variations of this command and I... (3 Replies)
Discussion started by: citizencro
3 Replies
5. UNIX for Dummies Questions & Answers
Hi,
i am using unix server and bash shell..
i have two csv files...
i have file 1 as below...
arun
bvb
ssx
ccc
and file 2 as below
manas
friu
dfgg
cat (3 Replies)
Discussion started by: arunmanas
3 Replies
6. UNIX for Dummies Questions & Answers
actually, i have to grep the value of cpu usage from six differrent servers and it has to generated in a single report( in a single text or excel file). i have used the below command for grepping the value.
top -n 1 > arun.txt
cat arun.txt | grep 'init' | cut -c 49-53 > output1.csv
like... (2 Replies)
Discussion started by: arunmanas
2 Replies
7. Shell Programming and Scripting
Hi,
Want to append the text to a new file,
echo "set `sqlplus -S abc/xyz123@localdb<<EOS" >> chk_test_append.sh
echo "EOS`" >> chk_test_append.shbut getting the below error :
what wrong is written ?
With Regards (4 Replies)
Discussion started by: milink
4 Replies
8. Shell Programming and Scripting
hi all,
can anybody help me with script or command to ftp some text file from windows machine to AIX machine.
this is shud be done by executing a shell script. (1 Reply)
Discussion started by: suprithhr
1 Replies
9. Shell Programming and Scripting
hello,
I am trying to append\insert the text that exists in file A into file B.
for instance:
File A contains: abcdef
File B contains: ghijklm
can i insert into file A the content in file B without damaging\deleting the input into file A?
is there a command in shell that enables such... (1 Reply)
Discussion started by: danland
1 Replies