Search Results

Search: Posts Made By: yo-yo78
3,341
Posted By yo-yo78
like this work, but with file? ----------...
like this work, but with file?

---------- Post updated at 10:01 AM ---------- Previous update was at 07:11 AM ----------

i resolve... this is the script

#!/usr/bin/ksh...
3,341
Posted By yo-yo78
this is the error: ./prova.sh[6]: awk{print...
this is the error:
./prova.sh[6]: awk{print substr($0,1,7)}: not found

this is the script:
#!/usr/bin/ksh
DIR=/home/oracle/prova/manu
for FILE in $(ls $DIR)
do
echo "insert into...
3,341
Posted By yo-yo78
i try but doesn't work return this error ...
i try but doesn't work
return this error
line 1: awk{print substr($0,1,7)}: command not found
3,341
Posted By yo-yo78
thks so much for your replay it's work but...
thks so much for your replay
it's work but substr return error... i try substr($FILE,1,7) but doesn't work

thks
3,341
Posted By yo-yo78
the substrig is the first n characters the...
the substrig is the first n characters

the string of files is every different and contain 1 line but different length
3,341
Posted By yo-yo78
Script batch with command sed
hi,
i have a folder with 2000 text file where each file contain a string.
i need to trasform this string like this:

example of file : My name is Mark and I'm a child

the new file must be:
...
Showing results 1 to 6 of 6

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