Search Results

Search: Posts Made By: jehrome_rando
5,385
Posted By jehrome_rando
String manipulation in TCL
Suppose pwd=/home/user/work/wip1

How to output the "pwd string" into 5 chunks?

/home/user/work/wip1
/home/user/work
/home/user
/home
/

:confused:
3,925
Posted By jehrome_rando
How to run an application installed in another unix pc?
Do you guys have any suggestions?


hpterm -e rlogin <another unix pc>
???
2,110
Posted By jehrome_rando
recording command outputs in background
For example:


% ls /store > list.txt
% less list.txt
% 1.txt
% 2.txt


I want to execute 'ls' in verbose and store the result in background to 'list.txt' so i dont have to execute another...
7,729
Posted By jehrome_rando
Printing the invert of the last field of awk
in csh

set x = "/home/usr/dir1/file1"

if i do:

echo $x | awk -F\/ '{print $NF}'

will result to:
"file1"

how do i invert the output to:
"/home/usr/dir1"

:confused:
3,147
Posted By jehrome_rando
You may try: #!/bin/csh -f foreach file (...
You may try:

#!/bin/csh -f
foreach file ( `ls -l | grep -v ^d | awk '{print $NF}'` )
if ( `echo $file | wc -m` == 35 ) then
printf '%s\n' $file
endif
end
9,546
Posted By jehrome_rando
Printing lines with specific awk NF
I have this files:
./frm/lf_mt1_cd.Ic_cell_template.attr
./die/addgen_tb_pumd.Ic_cell_template.attr
./min_m1_n.Ic_cell_template.attr

When I use:
awk -F\/ '{print NF}'

Would result to:
3
3...
Showing results 1 to 6 of 6

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