Search Results

Search: Posts Made By: austing5
3,160
Posted By tukuyomi
Try this then (could not test my previous code...
Try this then (could not test my previous code 'cause I was on my smartphone)awk '!($0~x)' x="$3" file
3,160
Posted By pamu
check your $3 is getting assigned correctly or...
check your $3 is getting assigned correctly or not..
just do echo $3 and check..

And it wont change your original file content...

for changing original file.. do .

awk -v x="$3" '$0 !~ x'...
1,581
Posted By BeefStu
You can call your script name anything you like....
You can call your script name anything you like. Ie bla.bla xx ....

Typically the first line in the scirpt is the shabang command, this dictates
what shell you are using.. For the most...
1,581
Posted By Corona688
Linux and UNIX don't care about the filename at...
Linux and UNIX don't care about the filename at all. They check the first few bytes in the file to see what it is.

All the top line does is tell the OS what shell to use.

If you want to use...
1,272
Posted By methyl
The "=" version is setting the permissions...
The "=" version is setting the permissions regardless of any previous permisssions. The "+" version is adding permissions to existing permisisons.
As the permissions in your example are "rwx" the...
10,561
Posted By Tommyk
you were almost right, if you haven't got it by...
you were almost right, if you haven't got it by now try the following:


ls -a *.txt


the -a shows hidden file as well, and the * is a wild card means anything.

so *.txt is anything that...
3,631
Posted By xbin
/home/unix/jones unix is the parent...
/home/unix/jones

unix is the parent directory of jones
home is the parent directory of unix
the root directory is the parent directory of home
3,631
Posted By frappa
Hi austing5, maybe visualizing the structure...
Hi austing5,

maybe visualizing the structure of the directories may clarify the concept:


/ <-- this is the 'root' directory of linux/unix filesystem
|
+-- home ...
Showing results 1 to 8 of 8

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