Search Results

Search: Posts Made By: ade05fr
1,604
Posted By ade05fr
sed and variable
Hello


i would like to interpret a variable in this command

cnt=3
sed -n '${cnt}p' file.txt

sed: 0602-403 `${cnt}`p is not a recognized function.


can you help me please ?
thanks
4,031
Posted By ade05fr
how to remove "^J" in a variable
Hi
i have a strange thing i have made a script to retrieve the result of an SQL command with sqlplus and if i do an echo to my variable it displays well.
But when i tried to do an update in my...
4,811
Posted By ade05fr
thanks it works fine
thanks it works fine
4,811
Posted By ade05fr
cat and uniq command
Hello

i have tried to retrieve a distinct list of data from a file with a command combination but the uniq command line is not filtering the fields repeated.
Can someone help me ?

here is the...
13,544
Posted By ade05fr
thanks it works
thanks it works
13,544
Posted By ade05fr
regular expression and ls
hello

using KSH shell
i have those files in a folder
FILE01
FILE1
FILE02
FILE2
FILE001
FILE0001

in a script i would like to list all the files through regular expressions
i tried this...
5,230
Posted By ade05fr
hello everyone it seems that the root cause...
hello everyone

it seems that the root cause is related to the sed version.
We are using solaris 8 and this error message does not appear on sed version from solaris 9.
5,230
Posted By ade05fr
hello does anyone have any idea ? thanks a...
hello
does anyone have any idea ?
thanks a lot
5,230
Posted By ade05fr
here is a part that give the error cat...
here is a part that give the error


cat test.txt
§K5B7GGiMC08 |810814|XXXXX SERVICE AAAAAAAAAAA ZZZZZZZZZ|QRWJVW HIHQU AL YGK YCDS TB RBDJAJJ : Gytwthvdj lrysisnéd qkj Lplpçybt Hydqwokx pphyhekoqk...
5,230
Posted By ade05fr
sed and Output line too long
hello

i try this command in console mode

sed -e :a -e '/[^\247]$/N; s/\([^\247]\)\n/\1 /; ta' test.txt > result.txt

i have in the output screen "Output line too long" for multiples lines ...
3,916
Posted By ade05fr
Hello firstly thanks a lot for your replies....
Hello

firstly thanks a lot for your replies.
Now here is my feedback :

1- here is the content of the listResult.tmp file

cat listResult.tmp
5187
2915
2884
5206
...

you think awk is...
3,916
Posted By ade05fr
egrep chars limitation ?
hello

i have i file which contains more than 5000 lines with number (between 4-10chars by line)

i have tried this

egrep -v "`cat keep.tmp`" listResult.tmp > result.tmp

cat keep.tmp...
3,735
Posted By ade05fr
hello sorry to come back but in fact the sed...
hello

sorry to come back but in fact the sed command solution is not what i want because the last field is not a constant but a value that can change :

# cat a...
3,735
Posted By ade05fr
yes ! sun solaris SunOS 5.9
yes ! sun solaris SunOS 5.9
3,735
Posted By ade05fr
there is a syntax problem awk -F\247...
there is a syntax problem

awk -F\247 'NF>1{printf $0 (($NF=="")?RS:"")}' head.temp
awk: syntax error near line 1
awk: illegal statement near line 1
3,735
Posted By ade05fr
i have a problem can you help me ? sed...
i have a problem can you help me ?


sed '/\247/,/FLAG/{;/\247/!d;}' head.temp | sed '/\247/{N; s/\n//}'
sed: command garbled: /§/{N; s/\n//}


thanks a lot
3,735
Posted By ade05fr
great that works but in fact there is a problem ...
great that works but in fact there is a problem

we dont want to move up records that start by "§" delimiter.
With this commandline all the records are in one line

example ...
3,735
Posted By ade05fr
how to delete \n in a large file with sed
Hello

i have a big file with a specific format and delimiter is "§" :

§field1§$field2§$field3§$field4§$field5§$field6§$field§

in this file we have a field which are very long (more than...
Showing results 1 to 18 of 18

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