Sponsored Content
Full Discussion: append a ' to the $1 $2
Top Forums Shell Programming and Scripting append a ' to the $1 $2 Post 302199277 by ppass on Monday 26th of May 2008 09:06:59 AM
Old 05-26-2008
append a ' to the $1 $2

Hi all ,

Iam trying to append a ' to the end of the $1 and $2 in the bellow example :
awk '{print "exec upload" ,$1,$2,$3 "\ngo"}'
so the output would be something like this :
exec upload '444042 ','444042 ','919841037265'

i am getting :
exec upload 444042 ,444042 ,919841037265

thanks

cheers
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

append question

I have a .pl script that is grabbing information and creating two different .txt files, I need to append one to the other. open GARPFILE; open GARPFILEXX; cat $gGarpFileXx >> $gGarpFile; close GARPFILE; close GARPFILEXX; but I'm getting this: Useless use... (1 Reply)
Discussion started by: mr_evans2u
1 Replies

2. Shell Programming and Scripting

Append with TM symbol

I have a file with delimiter ";" and 2 columns for eg: Transparent; ScotchPro™ If you see carefully you can see a special character "TM" at the end of data which is not showing up when I read the data in a regular sequential file. Did anyone anytime tackle this kind of Data. Please advice.... (1 Reply)
Discussion started by: ganesh123
1 Replies

3. UNIX for Dummies Questions & Answers

ftp append

What is the syntax for an ftp that is appending to the target file? I understand to use the append command, but how do you tell it which source file to append to which target file. ftpEngine() { ftp -inv ${FTP_SERVER} << EOF_FTP >> ${FTP_LOG} user ${FTP_USER} ${FTP_PSWD} cd ${FTP_DIR1}... (1 Reply)
Discussion started by: brdholman
1 Replies

4. Shell Programming and Scripting

Append value in a file

Dear all, I have output in file like below: and I need to append number starts from 901 til 909 to the end of each line please help. 109;0;109 109;1001;109 109;101;109 109;102;109 109;1101;109 109;1301;109 109;1401;109 109;162;109 109;1;109 109;201;109 109;202;109 109;216;109... (4 Replies)
Discussion started by: sfaqih
4 Replies

5. Shell Programming and Scripting

append last line

Suppose i have a file FILE1.TXT 2293847982374 sdj 23423 2298372038974 dsj 23492 2972837629376 abj 34929 2984836398384 abc 39723 I want to append the above FILE1.TXT with total no of records and appending to the last line with "3000004" total 7 digits only, if 12 records then "3000012" to... (11 Replies)
Discussion started by: kshuser
11 Replies

6. Shell Programming and Scripting

append first line

I like to append the first line of a file with some value. file1.dat 2111111111 23498ljljkj 2222222222 234kjkjs9 2333333333 98234lkjs 2444444444 0923skdfj i want to append some value eg: 1200910270040625 to the file1.dat how to do this in KSH I should have the outfile... (3 Replies)
Discussion started by: kshuser
3 Replies

7. UNIX for Dummies Questions & Answers

Append file

Hello all, I require assistance in combining files. This is the scenario: I've got lots of files which contain one column in each file and would like to combine the files into one so that the contents of the file can be sorted. For example, File 1 File 2 ... a d b e c ... (7 Replies)
Discussion started by: Muhammad Rahiz
7 Replies

8. UNIX for Dummies Questions & Answers

Copy and append

Ok, Here it goes. I have several file in a directory that I want to copy to another directory and append the date to the end of the file. I do not want to zip the I just need a copy. I would like the script to ask the user before copying each file in the directory to keep from making unneeded... (1 Reply)
Discussion started by: Dougj75
1 Replies

9. Shell Programming and Scripting

Append file

Legends, I need to append the file. please help me out. Current contents are /tmp/a.txt # e11.Mer.out.host1 "fun.tp" read e11.Mer.out.host2 "fun1.tp" read e11.Mer.out.host3 "fun2.tp" read... (7 Replies)
Discussion started by: sdosanjh
7 Replies

10. Shell Programming and Scripting

Grep and append

Have a string as below in a file. "anohter boy has id 000921 and girl has id=655 of roll number" using grep below commands with grep commands but able to get one string at a time, not able to append. less <filename> | grep -o -P '(?<=id ).*(?=and )' less <filename> | grep -o -P... (1 Reply)
Discussion started by: Satyak
1 Replies
GIT-LS-REMOTE(1)						    Git Manual							  GIT-LS-REMOTE(1)

NAME
git-ls-remote - List references in a remote repository SYNOPSIS
git ls-remote [--heads] [--tags] [-u <exec> | --upload-pack <exec>] <repository> <refs>... DESCRIPTION
Displays references available in a remote repository along with the associated commit IDs. OPTIONS
-h, --heads, -t, --tags Limit to only refs/heads and refs/tags, respectively. These options are not mutually exclusive; when given both, references stored in refs/heads and refs/tags are displayed. -u <exec>, --upload-pack=<exec> Specify the full path of git-upload-pack on the remote host. This allows listing references from repositories accessed via SSH and where the SSH daemon does not use the PATH configured by the user. <repository> Location of the repository. The shorthand defined in $GIT_DIR/branches/ can be used. Use "." (dot) to list references in the local repository. <refs>... When unspecified, all references, after filtering done with --heads and --tags, are shown. When <refs>... are specified, only references matching the given patterns are displayed. EXAMPLES
$ git ls-remote --tags ./. d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99 f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1 7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3 c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2 0918385dbd9656cab0d1d81ba7453d49bbc16250 refs/tags/junio-gpg-pub $ git ls-remote http://www.kernel.org/pub/scm/git/git.git master pu rc 5fe978a5381f1fbad26a80e682ddd2a401966740 refs/heads/master c781a84b5204fb294c9ccc79f8b3baceeb32c061 refs/heads/pu b1d096f2926c4e37c9c0b6a7bf2119bedaa277cb refs/heads/rc $ echo http://www.kernel.org/pub/scm/git/git.git >.git/branches/public $ git ls-remote --tags public v* d6602ec5194c87b0fc87103ca4d67251c76f233a refs/tags/v0.99 f25a265a342aed6041ab0cc484224d9ca54b6f41 refs/tags/v0.99.1 c5db5456ae3b0873fc659c19fafdde22313cc441 refs/tags/v0.99.2 7ceca275d047c90c0c7d5afb13ab97efdf51bd6e refs/tags/v0.99.3 AUTHOR
Written by Junio C Hamano <gitster@pobox.com[1]> GIT
Part of the git(1) suite NOTES
1. gitster@pobox.com mailto:gitster@pobox.com Git 1.7.1 07/05/2010 GIT-LS-REMOTE(1)
All times are GMT -4. The time now is 11:34 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy