10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
assume i have a file with content:
the output is:
how should we use any awk, sed, perl can do this task, means to extract the uniq prefixes from the start and stop prefix.
Jimmy (3 Replies)
Discussion started by: jimmy_y
2. UNIX for Advanced & Expert Users
I want to add prefix and suffix on line# 205 using SED or AWK and want to change on the same file without creating new file.
This command will be used in the bash script
Am using Bash shell
Nayaj (3 Replies)
Discussion started by: Nayaj
3. Shell Programming and Scripting
I want to remove only prefix ME_ from all the values that are present in the FILEA. Below code I'm using for this.
sed 's/ME\_//g' FILEA > FILEB
Using the above code, all ME_ values are getting removed from the file. But the problem here is I want to remove only Prefix ME_... (4 Replies)
Discussion started by: ed_9
4. Shell Programming and Scripting
I have a directory with Multiple subdirectories and 1000s of pictures (jpg) in each directory. The problem is that each directory has a 001.jpg in them. I want to append a unique name (the directory_name)would be fine. and then move them to one main backup directory once they have been... (1 Reply)
Discussion started by: kmaq7621
5. Shell Programming and Scripting
I want to append values to same string variable inside a recursive function that I have .. I do not want to write to any file but use a variable..
Can anyone please help with it? Thanks in advance. (6 Replies)
Discussion started by: Prev
6. Shell Programming and Scripting
I want an integer to be prefix with some zeros so that it makes the integer 5 digit always:
For eg: if the digit is 8 i need 00008
if the digit is 8976 ans sud be 08976.
Could anyone say simple and efficient commands to this in ksh.
Thanks a lot... (4 Replies)
Discussion started by: PRKS
7. UNIX for Dummies Questions & Answers
OK, now I just feel plain silly asking this. But I am very much a beginner at compiling and installing Unix software, so...
When setting the prefix, do you also have to specify the directory the files reside in? For example, lets say I am installing cURL in /usr/local
Would I set the prefix... (1 Reply)
Discussion started by: RobertSubnet
8. Shell Programming and Scripting
I have a variable, which contains comma separated values. Something like.
I want to apply prefix and suffix to each value in the string without using any loops.
Say if Prefix is Pre_ and Suffix is _Suf then I need to get
... (1 Reply)
Discussion started by: tostay2003
9. Shell Programming and Scripting
i want to check the command line argument $1 . which ends with .XYZ
eg if $1 is unix.XYZ
i want to check whether it ends with XYZ or not
if it didnot ends with XYZ.. then it has to exit (2 Replies)
Discussion started by: mail2sant
10. UNIX for Dummies Questions & Answers
I've got a bunch of files called oldabc, olddef etc.
i want to copy these to be abc, def....
I can do this with file extensions....but can get the logic to work for prefixes. All the files I am interested in have a prefix of 'old'.
This loop is no good for me....it looks at the content... (2 Replies)
Discussion started by: peter.herlihy