Search Results

Search: Posts Made By: prassu
5,794
Posted By prassu
Get all File names starting with letter P
Hi,
I have lets say 10 files , I need to process them one by one.
So I need a command to get one file name at a time to process it into a variable

Example
Files
P1111.dat
P3344.dat...
13,681
Posted By prassu
Unfortuantely, I am not able to use the sed -i...
Unfortuantely,
I am not able to use the sed -i but

I am also getting error while using the following command
$lines has the string I want to modify

write=`echo "$lines" | awk...
13,681
Posted By prassu
thanks for your update, I would probably do...
thanks for your update,

I would probably do this for now
read every line paste it in the new file if it doesn't match with my conditions.

if it does match paste the $line | awk command into...
13,681
Posted By prassu
Can it be done without using a new_file ? I...
Can it be done without using a new_file ?

I mean updating the same file is that possible?

Please Advice

Thanks
13,681
Posted By prassu
shell script to mask
I have a file which has huge number of rows.

I have to mask only few rows at a particular position lets say 12th to 19th i have to replace with X's (XXXXXXX)

I am reading the file and even...
3,884
Posted By prassu
perfect !! just replaced echo $line...
perfect !!

just replaced

echo $line with echo "$line" | awk '{print substr($0,4,3)}'


Thanks a lot..
3,884
Posted By prassu
Substring not working if more than 1 space
I have a string which is something like this..

abcd efghijkl

when I use this using substring() function 2 spaces are bein considered as one starngely.

Is there any thing I am doing...
Showing results 1 to 7 of 7

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