Search Results

Search: Posts Made By: nookie
2,554
Posted By nookie
storing a command in a variable
how would i go about storing this command in a variable

echo "$LINE" | awk -F"|" '{print $1"|"$2"|"$3"}'

i have tried FOO = ${command up there} but receive the error FOO: not found

aswell as...
2,054
Posted By nookie
oh thanks ! works
oh thanks !
works
2,054
Posted By nookie
sed command breaking because of /
hey im having a problem with my script

replace="dir/another_dir"

sed s/something/$replace/g

is there a way i can get around this problem without using the escape string character "\"
4,488
Posted By nookie
> edit in the sense you want to replace the first...
> edit in the sense you want to replace the first field with some other word keeping other intact??
yup that was what i meant



that is very simple to understand.
thank you very much
4,488
Posted By nookie
SH Script help. editing string
I have a string that looks like this

username|field1|field2|field3

the data has a delimiter of "|"
how can i edit field1, keeping the rest of the data the same
also how can i edit field2 and...
1,591
Posted By nookie
oh thanks that solved my problem it explains...
oh thanks that solved my problem
it explains why the same command return different output now

i am new to the unix environment and the school have use alias to make it easier for us to use. In...
1,591
Posted By nookie
different result on shell and on perl HELP NEEDED
hi i am using this command which would return to be the filename
ls -l $dir1 | awk '{print $9}'

however on perl when i use:
`ls -l $dir1 | awk '{print \$9}' > tmp`
it gives me a different...
2,679
Posted By nookie
Q: tar archive help
hey

how do you create a archive and add file to an existing archive.

i keep getting an error: dir/#: No such file or directory


currently using tar -cvfu name.tar files

files searching...
16,779
Posted By nookie
LOL you don't happen to be at RMIT ? i think...
LOL
you don't happen to be at RMIT ?
i think the office told everyone to learn this
Showing results 1 to 9 of 9

 
All times are GMT -4. The time now is 07:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy