Search Results

Search: Posts Made By: maykap100
5,198
Posted By maykap100
create a shell script
create a shell script that process a file

file contain

f2f_100.txt 1234 kkk 12345
f2f_101.txt 1234 mmm 11111
retire_200.txt 2222 rrr 22222
retire_201.txt 1112...
4,597
Posted By maykap100
validate the file name
write a shell script that check file name like pstat_24.txt (up to 5 digits)
i mean to say this digit can be range from 1 to 99999 only



correct file name are

pstat_10000.txt...
15,133
Posted By maykap100
have a look
DATA=`cat input.txt`
for data in $DATA
do
`echo $data > temp.txt`
length=`wc -c temp.txt | tr -s " " | cut -d " " -f 2`
prvlength=`expr $length - 5`
...
Showing results 1 to 3 of 3

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