Search Results

Search: Posts Made By: js8765
1,063
Posted By ctsgnb
find ./ -type d -name "*program*" | while read a ...
find ./ -type d -name "*program*" | while read a
do
grep -l PATTERN $a/*.ext
done
5,114
Posted By drl
Hi. A demo script that creates a file,...
Hi.

A demo script that creates a file, checks it in, modifies it, check in changes:
#!/usr/bin/env bash

# @(#) s1 Demonstrate non-interactive rcs check-in.

# Utility functions:...
2,250
Posted By Scrutinizer
In bash/ksh93 you can do this in one command: ...
In bash/ksh93 you can do this in one command:
diff <(sed -n 20,200p file1) <( sed -n 420,600p file2)
2,250
Posted By thegeek
Not an one liner, but, you can do this in two...
Not an one liner, but, you can do this in two steps.


# extract the required lines, and save in tmp file.

sed -n 20,200p file1 > file1.tmp


# extract the other required line, and diff....
Showing results 1 to 4 of 4

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