Search Results

Search: Posts Made By: abhisek.says
4,163
Posted By abhisek.says
Hi, I guess if you use regular expression...
Hi,

I guess if you use regular expression avialable in perl it would be good..

But still if you insist to do it using Unix, then in that case you might have to use awk command which would be a...
4,148
Posted By abhisek.says
This should help your cause
Here, [ -e var1 ] is used here to check for the existence of that variable
( var1), In your case its,$1 , which signifies the first argument bring passed to the script.


I hope this suffices...
3,709
Posted By abhisek.says
do deletee blank line including the tabs and spaces
sed '/^[ <tab>]*$/d' file ,
This works pretty nicely..
<tab> - you have to press tab key there..
2,778
Posted By abhisek.says
2,243
Posted By abhisek.says
to fine all the files other than .gz
ls -l | grep -v '.gz'
6,298
Posted By abhisek.says
Regarding your issue
Hi,

Actually i think first you have to connect to the remote server and then see for your existence of it trough if command and if found then you cn use the move command and move it across to...
7,971
Posted By abhisek.says
checking for file existence first
Hi,

First yo chech for the file existence and then

FLAG=0;
while read file
do
FLAG =1;
done < input_file
echo "$FLAG"

I think this should work...
6,490
Posted By abhisek.says
to view links
Hi ,


You can check for a link by typing the following command,

ls -l | grep ^l

Now when you type in `ls -l` it will show you the long listing of all the file in the curent directory and...
2,682
Posted By abhisek.says
awk related query
hi,

I have to extract a column from a file and then updated that column..??

Now i can use wak for extracting it and then how to update it..

$ awk' {print $5}' input_file

Can i use sed...
Showing results 1 to 9 of 9

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