Search Results

Search: Posts Made By: abhisek.says
4,173
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,149
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,711
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,786
Posted By abhisek.says
2,244
Posted By abhisek.says
to fine all the files other than .gz
ls -l | grep -v '.gz'
6,312
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...
8,006
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,504
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,704
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 11:37 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy